package deltax.common.math
{
    import flash.geom.*;

    public class Vector2D extends Point
    {

        public function Vector2D(param1:Number = 0, param2:Number = 0)
        {
            super(param1, param2);
            return;
        }// end function

        public function decrementBy(param1:Point) : void
        {
            x = x - param1.x;
            y = y - param1.y;
            return;
        }// end function

        public function incrementBy(param1:Point) : void
        {
            x = x + param1.x;
            y = y + param1.y;
            return;
        }// end function

        public function scaleBy(param1:Number) : void
        {
            x = x * param1;
            y = y * param1;
            return;
        }// end function

        public static function distance(param1, param2) : Number
        {
            return (param1.x - param2.x) * (param1.x - param2.x) + (param1.y - param2.y) * (param1.y - param2.y);
        }// end function

    }
}
